ostree/parse-datetime: Ensure tm structs are initialised
authorPhilip Withnall <withnall@endlessm.com>
Mon, 7 Aug 2017 13:13:30 +0000 (14:13 +0100)
committerAtomic Bot <atomic-devel@projectatomic.io>
Tue, 8 Aug 2017 14:11:07 +0000 (14:11 +0000)
commit86dce4b252005949a4f9a4f7b4666982b12a84d4
tree62013b0b7e8603489fc77d95c476e253859870f4
parente9b9123bae755c91c9a0cddc4c9cdb8383267f75
ostree/parse-datetime: Ensure tm structs are initialised

Otherwise tm.tm_wday remains uninitialised and gets propagated
elsewhere.

Spotted by Coverity as issue #209265.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
Closes: #1059
Approved by: cgwalters
src/ostree/parse-datetime.y